package com.woniu.service.impl;

import com.woniu.mapper.StatisticsMapper;
import com.woniu.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author mzy
 * @time 2021/03/30 11:13:32
 */
@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    StatisticsMapper statisticsMapper;

    /**
     * 根据userid查询该用户的预订单的销售信息
     * @param  userId
     * @return 返回满足userid的用户的销售信息
     */
    @Override
    public List<Map<String,String>> findReserveSalesByUserID(Integer userId){
        return statisticsMapper.findReserveSalesByUserID(userId);
    }
    /**
     * 根据userid查询该用户的售出单的销售信息
     * @param userId
     * @return
     */
    @Override
    public List<Map<String,String>> findReserveSellByUserID(Integer userId){
        return statisticsMapper.findReserveSellByUserID(userId);
    }
}
